#include <iostream>
#include <memory>
#include "TcpClient.hpp"

void usage(std::string proc_name)
{
    std::cout << "usage: \n\t" << proc_name << " ip port\n" << std::endl;
}

int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        usage(argv[0]);
        return USAGE_ERR;
    }
    std::string server_ip = argv[1];
    uint16_t server_port = std::stoi(argv[2]);

    std::unique_ptr<TcpClient> tclt = std::make_unique<TcpClient>(server_ip, server_port);
    tclt->start();

    return 0;
} 